public class Dog extends Animal {
    public Dog(String name) {
        super(name);
    }
    
    @Override
    public void makeSound() {
        System.out.println(name + " says: Woof! Woof!");
    }
    
    // Dog类特有的方法
    public void wagTail() {
        System.out.println(name + " is wagging tail");
    }
}